<div id="sidebar"></div>


<div id="overbar">
<?php if(bandit::get_option('theme_sidebar_num')): ?>
	<ul id="button-column">
	<?php for($i=1;$i<=bandit::get_option('theme_sidebar_num');$i++): ?>
		<li>
			<a href="<?php echo bandit::get_option('theme_sidebar_link'.$i); ?>">
			<?php if(!bandit::get_option('theme_sidebar_custom'.$i)): ?>
				<i class="icon-24"><img src="<?php echo get_template_directory_uri().'/img/sidebar-icons/'.bandit::get_option('theme_sidebar_icon'.$i); ?>" alt="<?php echo bandit::get_option('theme_sidebar_text'.$i); ?>" /></i>
			<?php else: ?>
				<i class="icon-24"><img src="<?php echo bandit::get_option('theme_sidebar_custom'.$i); ?>" alt="<?php echo bandit::get_option('theme_sidebar_text'.$i); ?>" /></i>
			<?php endif; ?>
				<span><?php echo bandit::get_option('theme_sidebar_text'.$i); ?></span>
			</a>
		</li>
	<?php endfor; ?>
	</ul>
<?php endif; ?>
</div>

<div id="sidebar-inner">
	<?php bandit::site_name(); ?>
	<?php bandit::site_desc(); ?>
	<ul id="sidebar-widgets">
		<?php dynamic_sidebar('bandit_sidebar'); ?>
	</ul>
</div>